<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Listar Alunos</title>
        <script type="text/javascript">
            function show_confirm(act,gotoid){
                if(act=="edit")
                    var r=confirm("Do you really want to edit?");
                else
                    var r=confirm("Do you really want to delete?");
                if (r==true) {
                    window.location="<?php echo base_url();?>index.php/users/"+act+"/"+gotoid;
                }
            }
        </script>
    </head>
    <body>
        <table width="600" border="1" cellpadding="5">
            <tr>
                <th scope="col">ID</th>
                <th scope="col">Nome</th>
                <th scope="col">Curso</th>
                <th scope="col">Raça</th>
                <th scope="col">Data de Nascimento</th>
                <th scope="col">Idade</th>
                <th scope="col">Sexo</th>
                <th scope="col">Estado Civil</th>
                <th scope="col">Chefe de Família</th>
                <th scope="col">Dependentes</th>
                <th scope="col">Filhos?</th>
                <th scope="col">Quantos Filhos</th>
                <th scope="col">Moram com o Aprendiz</th>
                <th scope="col">Quem cuida dos filhos do Aprendiz</th>
                <th scope="col">Endereço</th>
                <th scope="col">Bairro</th>
                <th scope="col">Cidade</th>
                <th scope="col">CEP</th>
                <th scope="col">Telefone Residencial</th>
                <th scope="col">Celular</th>
                <th scope="col">Telefone Comercial</th>
                <th scope="col">Telefone para Recadosr</th>
                <th scope="col">Estuda?</th>
                <th scope="col">Turno</th>
                <th scope="col">Série que parou</th>
                <th scope="col">Mão Dominante</th>
                <th scope="col">Necessidade Especial</th>
                <th scope="col">Conhecimento em Informática</th>
                <th scope="col">Outros Conhecimentos em Informática</th>
                <th scope="col">Renda Familiar</th>
                <th scope="col">Numero de Moradores</th>
                <th scope="col">Quantos Destes Trabalham</th>
                <th scope="col">Menores de 14 anos</th>
                <th scope="col">Menores de 5 anos</th>
                <th scope="col">Trabalha Atualmente</th>
                <th scope="col">Horario de Trabalho</th>
                <th scope="col">Disponibilidade para Curso</th>
                <th scope="col">Data</th>              
            </tr>
            
                <?php foreach ($user_list as $u_key){ ?>
            
            <tr>
                <td><?php echo $u_key->usuario_id; ?></td>
                <td><?php echo $u_key->nome; ?></td>
                <td><?php echo $u_key->curso; ?></td>
                <td><?php echo $u_key->raca; ?></td>
                <td><?php echo $u_key->data_nascimento; ?></td>
                <td><?php echo $u_key->idade; ?></td>
                <td><?php echo $u_key->sexo; ?></td>
                <td><?php echo $u_key->estado_civil; ?></td>
                <td><?php echo $u_key->chefe_familia; ?></td>
                <td><?php echo $u_key->dependentes; ?></td>
                <td><?php echo $u_key->filhos; ?></td>
                <td><?php echo $u_key->filhos_quantidade; ?></td>
                <td><?php echo $u_key->filhos_moradia; ?></td>
                <td><?php echo $u_key->filhos_cuidador; ?></td>
                <td><?php echo $u_key->endereco; ?></td>
                <td><?php echo $u_key->bairro; ?></td>
                <td><?php echo $u_key->cidade; ?></td>
                <td><?php echo $u_key->cep; ?></td>
                <td><?php echo $u_key->telefone_residencial; ?></td>
                <td><?php echo $u_key->celular; ?></td>
                <td><?php echo $u_key->telefone_comercial; ?></td>
                <td><?php echo $u_key->telefone_recado; ?></td>
                <td><?php echo $u_key->estuda; ?></td>
                <td><?php echo $u_key->turno; ?></td>
                <td><?php echo $u_key->serie_parou; ?></td>
                <td><?php echo $u_key->mao_dominante; ?></td>
                <td><?php echo $u_key->necessidade_especial; ?></td>
                <td><?php echo $u_key->conhecimento_informatica; ?></td>
                <td><?php echo $u_key->conhecimento_informatica_outro; ?></td>
                <td><?php echo $u_key->renda_familiar; ?></td>
                <td><?php echo $u_key->numero_moradores; ?></td>
                <td><?php echo $u_key->quantos_trabalham; ?></td>
                <td><?php echo $u_key->menores_14; ?></td>
                <td><?php echo $u_key->menores_5; ?></td>
                <td><?php echo $u_key->recebe_bolsa; ?></td>
                <td><?php echo $u_key->trabalha_atualmente; ?></td>
                <td><?php echo $u_key->trabalho_horario; ?></td>
                <td><?php echo $u_key->curso_disponibilidade; ?></td>
                <td><?php echo $u_key->data; ?></td>
            </tr>
                <?php }?>
            <tr>
                <td colspan="7" align="right"> <a href="<?php echo base_url();?>index.php/user/add_form">Insert New User</a></td>
            </tr>
        </table>
    </body>
</html>